package com.lkd.controller;

import com.lkd.dto.VmPageDto;
import com.lkd.result.PageBean;
import com.lkd.result.Result;
import com.lkd.service.VmService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/vm-service/vm")
@RequiredArgsConstructor
public class VmController {
    private final VmService vmService;
    @GetMapping("/search")
    //设备搜索
    public Result search(VmPageDto vmPageDto){
        PageBean pageBean = vmService.search(vmPageDto);
        return Result.success(pageBean);
    }
}
